// 消息管理
const sysNoticeRecord = (request) => {
	return {
		// 分页查询消息管理
		view_sysNoticeRecord_page(query = {}) {
			return request('/admin/sysNoticeRecord/page', {
				method: 'post',
				data: query,
			})
		},
		// 一站办消息通知，替换全局消息通知，默认传roleType：2
		// view_sysNoticeRecordByBsc_page
		// view_sysNoticeRecord_pageByBsc
		view_sysNoticeRecordByBsc_page(query = {}) {
			return request('/admin/sysNoticeRecord/pageByBsc', {
				method: 'post',
				data: {
					roleType:2,
					...query
				},
			})
		},
		// 新增消息管理
		view_sysNoticeRecord_add(query = {}) {
			return request('/admin/sysNoticeRecord/add', {
				method: 'post',
				data: query,
			})
		},
		// 删除消息管理
		view_sysNoticeRecord_del(ids) {
			return request('/admin/sysNoticeRecord/del', {
				method: 'post',
				data: {
					batchesDel: ids,
				},
			})
		},
		// 修改消息管理
		view_sysNoticeRecord_edit(query = {}) {
			return request('/admin/sysNoticeRecord/edit', {
				method: 'post',
				data: query,
			})
		},
		// 阅读消息
		view_sysNoticeRecord_read(query = {}) {
			return request('/admin/sysNoticeRecord/read', {
				method: 'post',
				data: query,
			})
		},
	}
}
export default ({ request }: any) => ({
	...sysNoticeRecord(request),
})
